package com.wicket.okrapp.web.contorller;

import com.wicket.okrapp.biz.service.DashboradStandardDataService;
import com.wicket.okrapp.biz.service.dto.req.*;
import com.wicket.okrapp.biz.service.dto.res.*;
import com.wicket.okrapp.common.ro.OkrResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/app/dashboradStandardData/")
public class DashboradStandardDataController {

  @Autowired
  DashboradStandardDataService dashboradStandardDataService;
/**
   * D3查询评价模板下小圈子身份列表(公共)
   */
    @PostMapping("queryEvaTempCircleRoleListCom")
    public OkrResult<QueryEvaTempCircleRoleListComRespDto> queryEvaTempCircleRoleListCom(@RequestBody @Validated QueryEvaTempCircleRoleListComReqDto reqDTO){
    return OkrResult.success(dashboradStandardDataService.queryEvaTempCircleRoleListCom(reqDTO));
    }
/**
   * D3统计个人指标数(公共)
   */
    @PostMapping("statisticsPersonalObjectiveNumberCom")
    public OkrResult<StatisticsPersonalObjectiveNumberComRespDto> statisticsPersonalObjectiveNumberCom(@RequestBody @Validated StatisticsPersonalObjectiveNumberComReqDto reqDTO){
    return OkrResult.success(dashboradStandardDataService.statisticsPersonalObjectiveNumberCom(reqDTO));
    }
/**
   * D3统计部门下人员指标数(公共)
   */
    @PostMapping("statisticsDeptPersonalObjectiveNumberCom")
    public OkrResult<StatisticsDeptPersonalObjectiveNumberComRespDto> statisticsDeptPersonalObjectiveNumberCom(@RequestBody @Validated StatisticsDeptPersonalObjectiveNumberComReqDto reqDTO){
    return OkrResult.success(dashboradStandardDataService.statisticsDeptPersonalObjectiveNumberCom(reqDTO));
    }
/**
   * D3查询目标看板更新周期类型列表
   */
    @PostMapping("queryTargetBoardUpdateCycleTypeCodeList")
    public OkrResult<QueryTargetBoardUpdateCycleTypeCodeListRespDto> queryTargetBoardUpdateCycleTypeCodeList(@RequestBody @Validated QueryTargetBoardUpdateCycleTypeCodeListReqDto reqDTO){
    return OkrResult.success(dashboradStandardDataService.queryTargetBoardUpdateCycleTypeCodeList(reqDTO));
    }
/**
   * D3分析目标大屏基层部门ID(公共)
   */
    @PostMapping("analysisDashboardBasicDeptIdCom")
    public OkrResult<AnalysisDashboardBasicDeptIdComRespDto> analysisDashboardBasicDeptIdCom(@RequestBody @Validated AnalysisDashboardBasicDeptIdComReqDto reqDTO){
    return OkrResult.success(dashboradStandardDataService.analysisDashboardBasicDeptIdCom(reqDTO));
    }
/**
   * D3执行查询父子中目标归属周期列表(公共)
   */
    @PostMapping("implementParentSubMidTargetAttributionCycleCom")
    public OkrResult<ImplementParentSubMidTargetAttributionCycleComRespDto> implementParentSubMidTargetAttributionCycleCom(@RequestBody @Validated ImplementParentSubMidTargetAttributionCycleComReqDto reqDTO){
    return OkrResult.success(dashboradStandardDataService.implementParentSubMidTargetAttributionCycleCom(reqDTO));
    }
/**
   * D3查询目标周期树数据点标准数据列表(公共)
   */
    @PostMapping("queryTargetCycleTreeDataTypeStandardDataListCom")
    public OkrResult<QueryTargetCycleTreeDataTypeStandardDataListComRespDto> queryTargetCycleTreeDataTypeStandardDataListCom(@RequestBody @Validated QueryTargetCycleTreeDataTypeStandardDataListComReqDto reqDTO){
    return OkrResult.success(dashboradStandardDataService.queryTargetCycleTreeDataTypeStandardDataListCom(reqDTO));
    }
/**
   * D3查询目标周期多数据点标准数据列表(公共)
   */
    @PostMapping("queryTargetCycleTreeMultiDataTypeStandardDataListCom")
    public OkrResult<QueryTargetCycleTreeMultiDataTypeStandardDataListComRespDto> queryTargetCycleTreeMultiDataTypeStandardDataListCom(@RequestBody @Validated QueryTargetCycleTreeMultiDataTypeStandardDataListComReqDto reqDTO){
    return OkrResult.success(dashboradStandardDataService.queryTargetCycleTreeMultiDataTypeStandardDataListCom(reqDTO));
    }
/**
   * D3查询目标周期树多数据点标准数据列表
   */
    @PostMapping("queryTargetCycleTreeMultiDataTypeStandardDataList")
    public OkrResult<QueryTargetCycleTreeMultiDataTypeStandardDataListRespDto> queryTargetCycleTreeMultiDataTypeStandardDataList(@RequestBody @Validated QueryTargetCycleTreeMultiDataTypeStandardDataListReqDto reqDTO){
    return OkrResult.success(dashboradStandardDataService.queryTargetCycleTreeMultiDataTypeStandardDataList(reqDTO));
    }
}
